In an effort to distribute kiwi on pypi it should not be required to call make targets for a complete installation. Therefore the compilation of the C tools as well as the installation of the man pages and the bash completion has been added to setup.py. The spec file to build an rpm package has been changed to use setup.py exclusively
19 lines
284 B
Makefile
19 lines
284 B
Makefile
buildroot = /
|
|
|
|
SRCS := $(wildcard *.c)
|
|
PRGS := $(patsubst %.c,%,$(SRCS))
|
|
|
|
CC = gcc -Wall -fpic -Wno-unused-result -O2
|
|
|
|
all: $(PRGS)
|
|
|
|
%.o: %.c
|
|
$(CC) $(CFLAGS) $< -o $@
|
|
|
|
clean:
|
|
$(RM) $(PRGS)
|
|
|
|
install:
|
|
install -d -m 755 ${buildroot}usr/bin
|
|
install -m 755 $(PRGS) ${buildroot}usr/bin
|