]> git.pld-linux.org Git - projects/setup.git/blobdiff - Makefile
- apply setup-dquo.patch (by pascalek)
[projects/setup.git] / Makefile
index 7171f79a0cbe5da537b304460114f6d7546b4875..d4ad262676394dd13f86e1a5d50aef83b1530f3a 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,7 @@
 # Very basic and very simple Makefile. Maybe it would be nice to make it
 # in ac/am.... but I'm too lazy ;)
-# 
-VERSION                = 2.4.9
+#
+VERSION                = 2.5.6
 
 CC             = gcc
 OPT_FLAGS      = -O2 -g
@@ -14,7 +14,7 @@ ENVDIR                = $(ETCDIR)/env.d
 SHRCDIR                = $(ETCDIR)/shrc.d
 #########################################
 
-BIN_FILES      = joinpasswd
+BIN_FILES      = joinpasswd update-fstab postshell
 DOCS           = ChangeLog
 ETC_FILES      = filesystems fstab group host.conf hosts motd mtab \
            netgroup passwd profile protocols resolv.conf securetty \
@@ -23,13 +23,15 @@ PROFILE_FILES       = tmp-dir.csh tmp-dir.sh
 ENV_FILES      = EDITOR HISTFILESIZE HOME_ETC MAILCHECK MAILPATH \
            NNTPSERVER ORGANIZATION TMOUT VISUAL
 
-SOURCES                = joinpasswd.c
+SOURCES                = joinpasswd.c update-fstab.c postshell.c
 CLEAN          = $(BIN_FILES) *.o core *.tar.gz *.tar.bz2 *~ *.swp
 
 #########################################
-all: joinpasswd
+all: $(BIN_FILES)
 
 joinpasswd: joinpasswd.o
+update-fstab: update-fstab.o
+postshell: postshell.o
 
 .c.o:
        $(CC) $(CPPFLAGS) $(CFLAGS) $(CDEFS) -c $< -o $@
@@ -49,20 +51,28 @@ install:
        cd etc/profile.d; $(INSTALL) $(PROFILE_FILES) $(DESTDIR)/$(PROFILEDIR)
        cd etc/env.d; $(INSTALL) $(ENV_FILES) $(DESTDIR)/$(ENVDIR)
 
-dist: clean
-       
+dist: changelog clean
        $(INSTALL) -d setup-$(VERSION)/etc/profile.d
        $(INSTALL) -d setup-$(VERSION)/etc/env.d
        $(INSTALL) -d setup-$(VERSION)/etc/shrc.d
        $(INSTALL) $(DOCS) $(SOURCES) Makefile setup-$(VERSION)
        for file in $(ETC_FILES); do \
-               $(INSTALL) etc/$$file setup-$(VERSION)/etc; \
+               $(INSTALL) -m644 etc/$$file setup-$(VERSION)/etc; \
        done
        for file in $(PROFILE_FILES); do \
-               $(INSTALL) etc/profile.d/$$file setup-$(VERSION)/etc/profile.d; \
+               $(INSTALL) -m755 etc/profile.d/$$file setup-$(VERSION)/etc/profile.d; \
        done
        for file in $(ENV_FILES); do \
-               $(INSTALL) etc/env.d/$$file setup-$(VERSION)/etc/env.d; \
+               $(INSTALL) -m644 etc/env.d/$$file setup-$(VERSION)/etc/env.d; \
        done
        tar -cvjf setup-$(VERSION).tar.bz2 setup-$(VERSION)
        rm -rf setup-$(VERSION)
+
+changelog:
+       ./changelog.sh
+
+tag:
+       cvs tag setup-$(shell echo $(VERSION) | tr . _)
+
+distfiles: dist
+       lftp -c "open dropin; mput setup-$(VERSION).tar.bz2"
This page took 0.080669 seconds and 4 git commands to generate.