]> pd.if.org Git - zpackage/blobdiff - Makefile
added force flag to zpm-preserve
[zpackage] / Makefile
index 094e295c243c0794346ffb207b48e5e705a86d81..e33313e6ec50b8877b8c3e34ea2506888bf45292 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,22 @@
-install:
+CFLAGS=-Wall -std=c99
+
+programs: elftype soname
+
+elftype: elf/elftype.c
+       $(CC) $(CFLAGS) -o $@ $+
+
+soname: elf/soname.c
+       $(CC) $(CFLAGS) -o $@ $+
+
+install: elftype
        install -D zpm $(DESTDIR)/bin/zpm
        install -D zpm-note $(DESTDIR)/bin/zpm-note
+       install -D zpm-bug $(DESTDIR)/bin/zpm-bug
        install -D zpm-sequence $(DESTDIR)/bin/zpm-sequence
-       install -d -m2775 -o root -g adm $(DESTDIR)/var/lib/admin
-       install -d -m2775 -o root -g adm $(DESTDIR)/var/lib/admin/notes
+       install -d -m2770 -o root -g adm $(DESTDIR)/var/lib/admin
+       install -d -m2770 -o root -g adm $(DESTDIR)/var/lib/admin/notes
+       install -d -m2770 -o root -g adm $(DESTDIR)/var/lib/admin/notes/open
+       install -d -m2770 -o root -g adm $(DESTDIR)/var/lib/admin/notes/ack
+       install -D elftype $(DESTDIR)/usr/sbin/elftype
+       install -D soname $(DESTDIR)/usr/sbin/soname
        #SPOOL=$(DESTDIR)/var/lib/admin/notes ./zpm-sequence -c notes