git home / emma home
logo

sgw

Static git web. Emma's fork of stagit.
git clone https://git.y1.nz/archives/sgw.tar.gz
README | Files | Log | Refs | LICENSE

Makefile


      1 
      2 include config.mk
      3 
      4 stagit: main.c opt.o files.o index.o config.h config.mk
      5 	$(CC) main.c opt.o files.o index.o -o stagit $(LDFLAGS)
      6 
      7 opt.o: opt.c opt.h config.mk
      8 	$(CC) -c opt.c -o opt.o $(CFLAGS)
      9 
     10 files.o: files.c files.h config.mk
     11 	$(CC) -c files.c -o files.o $(CFLAGS)
     12 
     13 index.o: index.c config.h config.mk
     14 	$(CC) -c index.c -o index.o $(CFLAGS)
     15 
     16 clean:
     17 	rm -f opt.o files.o index.o stagit
     18 
     19 install: stagit config.mk
     20 	mkdir -p $(PREFIX)/bin
     21 	cp -f stagit $(PREFIX)/bin
     22 	chmod 755 $(PREFIX)/bin/stagit
     23 	mkdir -p $(MANPREFIX)/man1
     24 	sed "s/VERSION/$(VERSION)/g" < stagit.1 > $(MANPREFIX)/man1/stagit.1
     25 	chmod 644 $(MANPREFIX)/man1/stagit.1
     26 
     27 uninstall: config.mk
     28 	rm -f $(PREFIX)/bin/stagit
     29 	rm -f $(MANPREFIX)/man1/stagit.1
     30 

This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.