zpm-contents zpm-uninstall zpm-pathmod zpm-rmpackage zpm-newpackage \
zpm-pkg zpm-pkgfile zpm-gc zpm-repo zpm-update zpm-confgit
-MANPAGES=doc/zpm.8 $(addprefix doc/zpm-, list.8 contents.8 hash.8 quote.8 pathmod.8 note.8 vercmp.8 repo.8 gc.8)
+MANPAGES=$(shell ls doc/*.8)
+#MANPAGES=doc/zpm.8 $(addprefix doc/zpm-, list.8 contents.8 hash.8 quote.8 pathmod.8 note.8 vercmp.8 repo.8 gc.8)
COMPILED=$(ZPKGBIN)
PROGRAMS=$(SCRIPTS) $(COMPILED)
uncompress: uncompress.o
$(CC) $(CFLAGS) -o $@ $+ -llzma
-zpm-elftype: elf/elftype.c
- $(CC) -Ielf $(CFLAGS) -o $@ $+
+zpm-elftype: elf/elftype.o
+ $(CC) $(CFLAGS) -Ielf $(LDFLAGS) -o $@ $+
-zpm-soname: elf/soname.c
- $(CC) -Ielf $(CFLAGS) -o $@ $+
+zpm-soname: elf/soname.o
+ $(CC) $(CFLAGS) -Ielf $(LDFLAGS) -o $@ $+
-zpm-soneed: elf/needed.c
- $(CC) -Ielf $(CFLAGS) -o $@ $+
+zpm-soneed: elf/needed.o
+ $(CC) $(CFLAGS) -Ielf $(LDFLAGS) -o $@ $+
zpm-addfile: zpm-addfile.o libzpm.a libelf.a
$(CC) -Ielf $(CFLAGS) $(LDFLAGS) -o $@ $< -lzpm -lelf