-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
66 changed files
with
1,412 additions
and
1,220 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,55 +1,58 @@ | ||
.PHONY: docs clean maintainer-clean install uninstall | ||
|
||
COMMON=../common | ||
common_dir = ../common | ||
|
||
SOURCE=s1kd-acronyms.c $(COMMON)/s1kd_tools.c | ||
sources = s1kd-acronyms.c $(common_dir)/s1kd_tools.c | ||
|
||
ifeq ($(OS),Windows_NT) | ||
OUTPUT=s1kd-acronyms.exe | ||
executable = s1kd-acronyms.exe | ||
else | ||
OUTPUT=s1kd-acronyms | ||
executable = s1kd-acronyms | ||
endif | ||
|
||
WARNING_FLAGS=-Wall -Werror -pedantic-errors | ||
CFLAGS=$(WARNING_FLAGS) -I $(COMMON) `pkg-config --cflags libxml-2.0 libxslt` | ||
warning_flags = -Wall -Werror -pedantic-errors | ||
|
||
CFLAGS = $(warning_flags) -I $(common_dir) `pkg-config --cflags libxml-2.0 libxslt` | ||
|
||
ifneq ($(MSYSTEM),) | ||
CFLAGS+=-isystem $(COMMON)/msys | ||
CFLAGS += -isystem $(common_dir)/msys | ||
endif | ||
|
||
ifeq ($(DEBUG),1) | ||
CFLAGS+=-g | ||
ifeq ($(debug),1) | ||
CFLAGS += -g | ||
else | ||
CFLAGS+=-O3 | ||
CFLAGS += -O3 | ||
endif | ||
|
||
LDFLAGS=`pkg-config --libs libxml-2.0 libxslt` | ||
LDFLAGS = `pkg-config --libs libxml-2.0 libxslt` | ||
|
||
prefix = /usr/local | ||
exec_prefix = $(prefix) | ||
bindir = $(exec_prefix)/bin | ||
|
||
PREFIX=/usr/local | ||
INSTALL_PREFIX=$(PREFIX)/bin | ||
INSTALL=install -Ds | ||
INSTALL = install -Ds | ||
|
||
all: $(OUTPUT) | ||
all: $(executable) | ||
|
||
stylesheets.h: stylesheets/*.xsl | ||
> $@ && for f in $+; do xxd -i "$$f" >> $@; done | ||
|
||
$(OUTPUT): $(SOURCE) stylesheets.h | ||
$(CC) $(CFLAGS) -o $(OUTPUT) $(SOURCE) $(LDFLAGS) | ||
$(executable): $(sources) stylesheets.h | ||
$(CC) $(CFLAGS) -o $(executable) $(sources) $(LDFLAGS) | ||
|
||
docs: | ||
$(MAKE) -C doc | ||
|
||
clean: | ||
rm -f $(OUTPUT) stylesheets.h | ||
$(RM) $(executable) stylesheets.h | ||
|
||
maintainer-clean: clean | ||
$(MAKE) -C doc clean | ||
|
||
install: $(OUTPUT) | ||
$(INSTALL) $(OUTPUT) $(INSTALL_PREFIX)/$(OUTPUT) | ||
install: $(executable) | ||
$(INSTALL) $(executable) $(bindir)/$(executable) | ||
$(MAKE) -C doc install | ||
|
||
uninstall: | ||
rm -f $(INSTALL_PREFIX)/$(OUTPUT) | ||
$(RM) $(bindir)/$(output) | ||
$(MAKE) -C doc uninstall |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,29 @@ | ||
SOURCE=DMC-S1KDTOOLS-A-20-00-00-00A-040A-D_EN-CA.XML | ||
OUTPUT=s1kd-acronyms.1 | ||
README=../README.md | ||
source = DMC-S1KDTOOLS-A-20-00-00-00A-040A-D_EN-CA.XML | ||
manpage = s1kd-acronyms.1 | ||
readme = ../README.md | ||
|
||
PREFIX=/usr/local | ||
MAN_PREFIX=$(PREFIX)/share/man/man1 | ||
INSTALL=install -D | ||
prefix = /usr/local | ||
datarootdir = $(prefix)/share | ||
mandir = $(datarootdir)/man | ||
man1dir = $(mandir)/man1 | ||
|
||
all: $(OUTPUT) $(README) | ||
INSTALL = install -D | ||
|
||
$(README): $(SOURCE) | ||
all: $(manpage) $(readme) | ||
|
||
$(readme): $(source) | ||
s1kd2db $^ | pandoc -f docbook -t gfm -s -o $@ | ||
|
||
$(OUTPUT): $(SOURCE) | ||
$(manpage): $(source) | ||
s1kd2db $^ | pandoc -f docbook -t man -s -o $@ | ||
|
||
.PHONY: clean install uninstall | ||
|
||
clean: | ||
rm -f $(OUTPUT) $(README) | ||
$(RM) $(manpage) $(readme) | ||
|
||
install: | ||
$(INSTALL) $(OUTPUT) $(MAN_PREFIX)/$(OUTPUT) | ||
install: $(manpage) | ||
$(INSTALL) $(manpage) $(man1dir)/$(manpage) | ||
|
||
uninstall: | ||
rm -f $(MAN_PREFIX)/$(OUTPUT) | ||
$(RM) $(man1dir)/$(manpage) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,52 +1,55 @@ | ||
.PHONY: docs clean maintainer-clean install uninstall | ||
|
||
COMMON=../common | ||
common_dir = ../common | ||
|
||
SOURCE=s1kd-addicn.c $(COMMON)/s1kd_tools.c | ||
sources = s1kd-addicn.c $(common_dir)/s1kd_tools.c | ||
|
||
ifeq ($(OS),Windows_NT) | ||
OUTPUT=s1kd-addicn.exe | ||
executable = s1kd-addicn.exe | ||
else | ||
OUTPUT=s1kd-addicn | ||
executable = s1kd-addicn | ||
endif | ||
|
||
WARNING_FLAGS=-Wall -Werror -pedantic-errors | ||
CFLAGS=$(WARNING_FLAGS) -I $(COMMON) `pkg-config --cflags libxml-2.0` | ||
warning_flags=-Wall -Werror -pedantic-errors | ||
|
||
CFLAGS=$(warning_flags) -I $(common_dir) `pkg-config --cflags libxml-2.0` | ||
|
||
ifneq ($(MSYSTEM),) | ||
CFLAGS+=-isystem $(COMMON)/msys | ||
CFLAGS += -isystem $(common_dir)/msys | ||
endif | ||
|
||
ifeq ($(DEBUG),1) | ||
CFLAGS+=-g | ||
ifeq ($(debug),1) | ||
CFLAGS += -g | ||
else | ||
CFLAGS+=-O3 | ||
CFLAGS += -O3 | ||
endif | ||
|
||
LDFLAGS=`pkg-config --libs libxml-2.0` | ||
LDFLAGS = `pkg-config --libs libxml-2.0` | ||
|
||
prefix = /usr/local | ||
exec_prefix = $(prefix) | ||
bindir = $(exec_prefix)/bin | ||
|
||
PREFIX=/usr/local | ||
INSTALL_PREFIX=$(PREFIX)/bin | ||
INSTALL=install -Ds | ||
INSTALL = install -Ds | ||
|
||
all: $(OUTPUT) | ||
all: $(executable) | ||
|
||
$(OUTPUT): $(SOURCE) | ||
$(CC) $(CFLAGS) -o $(OUTPUT) $(SOURCE) $(LDFLAGS) | ||
$(executable): $(sources) | ||
$(CC) $(CFLAGS) -o $(executable) $(sources) $(LDFLAGS) | ||
|
||
docs: | ||
$(MAKE) -C doc | ||
|
||
clean: | ||
rm -f $(OUTPUT) | ||
$(RM) $(executable) | ||
|
||
maintainer-clean: clean | ||
$(MAKE) -C doc clean | ||
|
||
install: $(OUTPUT) | ||
$(INSTALL) $(OUTPUT) $(INSTALL_PREFIX)/$(OUTPUT) | ||
install: $(executable) | ||
$(INSTALL) $(executable) $(bindir)/$(executable) | ||
$(MAKE) -C doc install | ||
|
||
uninstall: | ||
rm -f $(INSTALL_PREFIX)/$(OUTPUT) | ||
$(RM) $(bindir)/$(executable) | ||
$(MAKE) -C doc uninstall |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,29 @@ | ||
SOURCE=DMC-S1KDTOOLS-A-27-00-00-00A-040A-D_EN-CA.XML | ||
OUTPUT=s1kd-addicn.1 | ||
README=../README.md | ||
source = DMC-S1KDTOOLS-A-27-00-00-00A-040A-D_EN-CA.XML | ||
manpage = s1kd-addicn.1 | ||
readme = ../README.md | ||
|
||
PREFIX=/usr/local | ||
MAN_PREFIX=$(PREFIX)/share/man/man1 | ||
INSTALL=install -D | ||
prefix = /usr/local | ||
datarootdir = $(prefix)/share | ||
mandir = $(datarootdir)/man | ||
man1dir = $(mandir)/man1 | ||
|
||
all: $(OUTPUT) $(README) | ||
INSTALL = install -D | ||
|
||
$(README): $(SOURCE) | ||
s1kd2db $(SOURCE) | pandoc -f docbook -t gfm -s -o $(README) | ||
all: $(manpage) $(readme) | ||
|
||
s1kd-addicn.1: $(SOURCE) | ||
s1kd2db $(SOURCE) | pandoc -f docbook -t man -s -o $(OUTPUT) | ||
$(readme): $(source) | ||
s1kd2db $^ | pandoc -f docbook -t gfm -s -o $@ | ||
|
||
$(manpage): $(source) | ||
s1kd2db $^ | pandoc -f docbook -t man -s -o $@ | ||
|
||
.PHONY: clean install uninstall | ||
|
||
clean: | ||
rm -f $(OUTPUT) $(README) | ||
$(RM) $(manpage) $(readme) | ||
|
||
install: | ||
$(INSTALL) $(OUTPUT) $(MAN_PREFIX)/$(OUTPUT) | ||
install: $(manpage) | ||
$(INSTALL) $(manpage) $(man1dir)/$(manpage) | ||
|
||
uninstall: | ||
rm -f $(MAN_PREFIX)/$(OUTPUT) | ||
$(RM) $(man1dir)/$(manpage) |
Oops, something went wrong.