summaryrefslogblamecommitdiff
path: root/Makefile
blob: e9bbf8aa5ffd272aa6902f11038a9a220c6708a0 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
                 
           













                                                                          

                                                                  




                        
INSTALL = install
YACC = yacc

PROJECT = userland.gpr

GENERATED = bin/expr/expr.c

all: prepare
	gprbuild -P $(PROJECT) -p

clean:
	gprclean -P $(PROJECT) -p
	rm -f $(GENERATED)

install: all
	gprinstall -P $(PROJECT) -p --prefix=$(if $(DESTDIR),$(DESTDIR),/)
	$(INSTALL) -Dm0755 bin/false/false.sh $(DESTDIR)/bin/false
	$(INSTALL) -Dm0755 bin/true/true.sh $(DESTDIR)/bin/true

prepare: $(GENERATED)

.y.c:
	$(YACC) -o $@ $<