Code cleanup

This commit is contained in:
Pierre Pronchery 2020-02-13 07:43:54 +01:00
parent b13136dbce
commit bc8005430c
5 changed files with 18 additions and 13 deletions

View File

@ -1,5 +1,6 @@
dist=Makefile,Darwin.conf,DeforaOS.conf,FreeBSD.conf,Linux.conf,NetBSD.conf,OpenBSD.conf,Windows.conf
#dist
[Darwin.conf]
install=$(PREFIX)/share/configure/platform

View File

@ -1,8 +1,8 @@
#$Id$
subdirs=scripts
targets=configure.1,configure.html,project.conf.5,project.conf.html
dist=Makefile,configure.css.xml,configure.xml,manual.css.xml,project.conf.css.xml,project.conf.xml
#targets
[configure.1]
type=script
script=./scripts/docbook.sh

View File

@ -1,6 +1,6 @@
#$Id$
dist=Makefile,appbroker.sh,clint.sh,coverage.sh,docbook.sh,fixme.sh,gettext.sh,gtkdoc.sh,htmllint.sh,manual.css.xml,markdown.sh,phplint.sh,pkgconfig.sh,platform.sh,pylint.sh,shlint.sh,subst.sh,template.sh,xmllint.sh
#dist
[appbroker.sh]
install=$(PREFIX)/share/doc/configure/scripts

View File

@ -7,6 +7,7 @@ ldflags_force=`pkg-config --libs libSystem`
ldflags=-pie -Wl,-z,relro -Wl,-z,now
dist=Makefile,common.h,configure.h,makefile.h,settings.h
#targets
[configure]
type=binary
depends=$(OBJDIR)makefile.o
@ -14,6 +15,15 @@ sources=common.c,configure.c,settings.c,main.c
ldflags=$(OBJDIR)makefile.o
install=$(BINDIR)
[makedepend]
type=binary
sources=makedepend.c
[makefile.o]
type=object
sources=makefile.c
#sources
[common.c]
depends=common.h
@ -27,13 +37,5 @@ depends=configure.h
[settings.c]
depends=settings.h
[makedepend]
type=binary
sources=makedepend.c
[makefile.o]
type=object
sources=makefile.c
[makefile.c]
depends=configure.h,settings.h,../config.h

View File

@ -4,19 +4,21 @@ cflags=-W -Wall -g -O2 -fPIE -D_FORTIFY_SOURCE=2 -fstack-protector
ldflags=-pie -Wl,-z,relro -Wl,-z,now
dist=Makefile
#targets
[configure]
type=binary
cflags=`pkg-config --cflags libSystem`
ldflags=`pkg-config --libs libSystem`
sources=configure.c
[configure.c]
depends=../src/common.c,../src/common.h,../src/configure.c,../src/configure.h,../src/main.c,../src/makefile.c,../src/makefile.h,../src/settings.c,../src/settings.h
[pkg-config]
type=binary
sources=pkg-config.c
#install=$(BINDIR)
#sources
[configure.c]
depends=../src/common.c,../src/common.h,../src/configure.c,../src/configure.h,../src/main.c,../src/makefile.c,../src/makefile.h,../src/settings.c,../src/settings.h
[pkg-config.c]
depends=../config.h