You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Makefile 771 B

1234567891011121314151617181920212223242526272829303132333435
  1. PROGRAM = tasksel
  2. VERSION=\"0.1\"
  3. CC = gcc
  4. CFLAGS = -g -Os -Wall
  5. DEFS = -DVERSION=$(VERSION) -DPACKAGE=\"$(PROGRAM)\" -DLOCALEDIR=\"/usr/share/locale\" #-DDEBUG
  6. LIBS = -lslang #-lccmalloc -ldl
  7. OBJS = tasksel.o slangui.o data.o util.o strutl.o
  8. COMPILE = $(CC) $(CFLAGS) $(DEFS) -c
  9. LINK = $(CC) $(CFLAGS) $(DEFS) -o
  10. all: $(PROGRAM)
  11. %.o: %.c
  12. $(COMPILE) $<
  13. po/build_stamp:
  14. $(MAKE) -C po
  15. $(PROGRAM): $(OBJS) po/build_stamp
  16. $(LINK) $(PROGRAM) $(OBJS) $(LIBS)
  17. install:
  18. mkdir -p $(DESTDIR)/usr/bin
  19. install tasksel $(DESTDIR)/usr/bin
  20. mkdir -p $(DESTDIR)/usr/share/man/man8
  21. pod2man --center "Debian specific manpage" tasksel.pod | gzip -9c > $(DESTDIR)/usr/share/man/man8/tasksel.8.gz
  22. test:
  23. $(MAKE) -C scratch
  24. clean:
  25. rm -f $(PROGRAM) *.o *~
  26. $(MAKE) -C po clean