# # $Header: /home/anoncvs/sdelete/Makefile.in,v 1.5 2019/01/15 19:08:07 bigby Exp $ # OBJECTS = recurse.o handle_file.o debug.o getblocksize.o usage.o PREFIX = $(HOME) CC = gcc @@LRT@@ all: sdelete sdelete: Makefile sdelete.o $(OBJECTS) $(CC) $(LDFLAGS) -o sdelete sdelete.o $(OBJECTS) build: all handle_file.o: handle_file.c config.h sdelete.o: sdelete.c config.h test: test.o $(OBJECTS) $(CC) -o test test.o $(OBJECTS) %.o : %.c Makefile $(CC) -c $< 1: mkdir -p 1/1 1/2 1/3 touch 1/1/a 1/2/b 1/3/c install: $(PREFIX)/bin $(PREFIX)/bin/sdelete $(PREFIX)/bin: install -d $(PREFIX)/bin $(PREFIX)/bin/sdelete: sdelete strip sdelete install -m 0555 sdelete $(PREFIX)/bin deinstall: uninstall uninstall: rm -f $(PREFIX)/bin/sdelete -rmdir $(PREFIX)/bin reinstall: uninstall install clean: rm -f *.o test sdelete reallyclean: realclean realclean: clean rm -f Makefile distclean: realclean clean rm -f .cvsignore