sgw | Static git web (fork of stagit) |
| download: https://git.y1.nz/archives/sgw.tar.gz | |
| README | Files | Log | Refs | LICENSE |
Makefile
1
2 include config.mk
3
4 sgw: main.c opt.o files.o repo.o index.o config.h config.mk
5 $(CC) main.c opt.o files.o repo.o index.o -o sgw $(LDFLAGS)
6
7 opt.o: opt.c opt.h config.mk
8 $(CC) -c opt.c -o opt.o $(CFLAGS)
9
10 repo.o: repo.c repo.h config.mk
11 $(CC) -c repo.c -o repo.o $(CFLAGS)
12
13 files.o: files.c files.h config.mk
14 $(CC) -c files.c -o files.o $(CFLAGS)
15
16 index.o: index.c config.h config.mk
17 $(CC) -c index.c -o index.o $(CFLAGS)
18
19 clean:
20 rm -f opt.o files.o index.o sgw
21
22 install: sgw config.mk
23 mkdir -p $(PREFIX)/bin
24 cp -f sgw $(PREFIX)/bin
25 chmod 755 $(PREFIX)/bin/sgw
26 mkdir -p $(MANPREFIX)/man1
27 sed "s/VERSION/$(VERSION)/g" < sgw.1 > $(MANPREFIX)/man1/sgw.1
28 chmod 644 $(MANPREFIX)/man1/sgw.1
29
30 uninstall: config.mk
31 rm -f $(PREFIX)/bin/sgw
32 rm -f $(MANPREFIX)/man1/sgw.1
33
This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.