Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 30 lines (20 sloc) 0.498 kb
1867307 @rene0 Add DESTDIR support and add install-strip and uninstall targets.
authored
1 .PHONY: all clean install install-strip uninstall
2
3 INSTALL_PROGRAM?=install
81da2c1 initial import
rene0 authored
4
8d29e4c Hook gen_bf.c to the build
René Ladan authored
5 all: bf2c gen_bf
81da2c1 initial import
rene0 authored
6
3596702 Use a standard-compliant Makefile
René Ladan authored
7 hdr = parsetree.h
8 obj = bf2c.o parsetree.o token.o tree.o
9
10 parsetree.o: parsetree.h
11 token.o: token.h
12 tree.o: tree.h
13 bf2c.o: $(hdr)
14
15 bf2c: $(obj)
16 $(CXX) -o $@ $(obj)
81da2c1 initial import
rene0 authored
17
18 clean:
8097297 Fix clean target and add an install target
René Ladan authored
19 rm bf2c gen_bf $(obj)
20
21 install:
1867307 @rene0 Add DESTDIR support and add install-strip and uninstall targets.
authored
22 mkdir -p $(DESTDIR)$(PREFIX)/bin
23 $(INSTALL_PROGRAM) bf2c gen_bf $(DESTDIR)$(PREFIX)/bin
24
25 install-strip:
26 $(MAKE) INSTALL_PROGRAM='install -s' install
27
28 uninstall:
29 rm -rf $(DESTDIR)$(PREFIX)/bin
Something went wrong with that request. Please try again.