Changeset 502205 for Makefile


Ignore:
Timestamp:
06/17/07 14:32:16 (11 years ago)
Author:
Erik Ekman <yarrick@…>
Branches:
iodine-0.5, iodine-0.6
Children:
9b7863
Parents:
854c7e
git-author:
Erik Ekman <yarrick@…> (06/17/07 14:32:16)
git-committer:
Erik Ekman <yarrick@…> (06/17/07 14:32:16)
Message:

hopefully more packaging-friendly makefile

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Makefile

    r3015cc r502205  
    1 PREFIX=/usr/local 
     1prefix=/usr/local 
     2sbindir=$(prefix)/sbin 
     3datadir=$(prefix)/share 
     4mandir=$(datadir)/man 
    25 
    3 INSTALL=/usr/bin/install 
     6DESTDIR= 
     7 
     8INSTALL=install 
    49INSTALL_FLAGS= 
    510 
     
    1419 
    1520install: all 
    16         $(MKDIR) $(MKDIR_FLAGS) $(PREFIX)/sbin 
    17         $(INSTALL) $(INSTALL_FLAGS) bin/iodine $(PREFIX)/sbin/iodine 
    18         $(INSTALL) $(INSTALL_FLAGS) bin/iodined $(PREFIX)/sbin/iodined 
    19         $(MKDIR) $(MKDIR_FLAGS) $(PREFIX)/man/man8 
    20         $(INSTALL) $(INSTALL_FLAGS) man/iodine.8 $(PREFIX)/man/man8/iodine.8 
     21        $(MKDIR) $(MKDIR_FLAGS) $(DESTDIR)$(sbindir) 
     22        $(INSTALL) $(INSTALL_FLAGS) bin/iodine $(DESTDIR)$(prefix)/iodine 
     23        $(INSTALL) $(INSTALL_FLAGS) bin/iodined $(DESTDIR)$(prefix)/iodined 
     24        $(MKDIR) $(MKDIR_FLAGS) $(DESTDIR)$(mandir)/man8 
     25        $(INSTALL) $(INSTALL_FLAGS) man/iodine.8 $(DESTDIR)$(mandir)/man8/iodine.8 
    2126 
    2227uninstall: 
    23         $(RM) $(RM_FLAGS) $(PREFIX)/sbin/iodine 
    24         $(RM) $(RM_FLAGS) $(PREFIX)/sbin/iodined 
    25         $(RM) $(RM_FLAGS) $(PREFIX)/man/man8/iodine.8 
     28        $(RM) $(RM_FLAGS) $(sbindir)/iodine 
     29        $(RM) $(RM_FLAGS) $(sbindir)/iodined 
     30        $(RM) $(RM_FLAGS) $(mandir)/man8/iodine.8 
    2631         
    2732test: all 
Note: See TracChangeset for help on using the changeset viewer.