Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ exec_prefix=$(prefix)
sbindir=$(exec_prefix)/sbin
datadir=$(prefix)/share

PACKAGE=$(shell gcc -E -dM config.h|awk '$$2=="PACKAGE"{gsub(/"/,"");print$$3}')
VERSION=$(shell gcc -E -dM config.h|awk '$$2=="VERSION"{gsub(/"/,"");print$$3}')
URL=$(shell gcc -E -dM config.h|awk '$$2=="CONTACT"{gsub(/"/,"");print$$3}')
CC = gcc
PACKAGE=$(shell $(CPP) -dM config.h|awk '$$2=="PACKAGE"{gsub(/"/,"");print$$3}')
VERSION=$(shell $(CPP) -dM config.h|awk '$$2=="VERSION"{gsub(/"/,"");print$$3}')
URL=$(shell $(CPP) -dM config.h|awk '$$2=="CONTACT"{gsub(/"/,"");print$$3}')

PROJECT_ID := $(PACKAGE)-$(VERSION)

Expand All @@ -21,7 +22,7 @@ all: $(targets)
ja.mo: ja.po

in.authd: authd.c config.h
gcc $(CFLAGS) $(LDFLAGS) -o $@ $<
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $<
authd.pot: authd.c


Expand Down
9 changes: 5 additions & 4 deletions GNUmakefile.docdir
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ exec_prefix=$(prefix)
sbindir=$(exec_prefix)/sbin
datadir=$(prefix)/share

PACKAGE=$(shell gcc -E -dM config.h|awk '$$2=="PACKAGE"{gsub(/"/,"");print$$3}')
VERSION=$(shell gcc -E -dM config.h|awk '$$2=="VERSION"{gsub(/"/,"");print$$3}')
URL=$(shell gcc -E -dM config.h|awk '$$2=="CONTACT"{gsub(/"/,"");print$$3}')
CC = gcc
PACKAGE=$(shell $(CPP) -dM config.h|awk '$$2=="PACKAGE"{gsub(/"/,"");print$$3}')
VERSION=$(shell $(CPP) -dM config.h|awk '$$2=="VERSION"{gsub(/"/,"");print$$3}')
URL=$(shell $(CPP) -dM config.h|awk '$$2=="CONTACT"{gsub(/"/,"");print$$3}')

PROJECT_ID := $(PACKAGE)-$(VERSION)

Expand All @@ -21,7 +22,7 @@ all: $(targets)
ja.mo: ja.po

in.authd: authd.c config.h
gcc $(CFLAGS) $(LDFLAGS) -o $@ $<
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $<
authd.pot: authd.c


Expand Down