Skip to content

Commit

Permalink
Moved build scripts to scripts/ dir
Browse files Browse the repository at this point in the history
  • Loading branch information
olofhagsand committed Oct 21, 2024
1 parent 9e289c6 commit 1908bde
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 7 deletions.
7 changes: 2 additions & 5 deletions Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -106,15 +106,15 @@ APPS = cligen_hello cligen_file cligen_tutorial
YACC = @YACC@
LEX = @LEX@

all: cligen $(APPS) write_version
all: cligen $(APPS)

ifeq ($(LINKAGE),dynamic)
all: $(MYLIBDYNAMIC)
else
all: $(MYSTATIC)
endif

.PHONY: TAGS test write_version
.PHONY: TAGS test
TAGS:
find . -name '*.[chyl]' -print | xargs etags

Expand All @@ -124,9 +124,6 @@ TAGS:
test:
(cd test && SKIPLIST="$(SKIPLIST)" CFLAGS="$(CFLAGS)" LINKAGE="$(LINKAGE)" ./all.sh)

write_version:
@echo $(shell PREFIX=cligen ./version.sh)

distclean: clean
rm -f Makefile config.log config.status config.h TAGS .depend
rm -rf autom4te.cache build.c cligen_config.h
Expand Down
2 changes: 1 addition & 1 deletion configure
Original file line number Diff line number Diff line change
Expand Up @@ -2506,7 +2506,7 @@ ac_config_headers="$ac_config_headers cligen_config.h"


# Use GIT version (what if no git?)
CLIGEN_VERSION="$(./version.sh)"
CLIGEN_VERSION="$(./scripts/version.sh)"
CLIGEN_VERSION2=$(echo ${CLIGEN_VERSION} | awk -F- '{print $1}')
CLIGEN_VERSION_MAJOR=$(echo ${CLIGEN_VERSION2} | awk -F. '{print $1}')
CLIGEN_VERSION_MINOR=$(echo ${CLIGEN_VERSION2} | awk -F. '{print $2}')
Expand Down
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ AC_SUBST(CLIGEN_VERSION_MINOR)
AC_SUBST(CLIGEN_VERSION_PATCH)

# Use GIT version (what if no git?)
CLIGEN_VERSION="$(./version.sh)"
CLIGEN_VERSION="$(./scripts/version.sh)"
CLIGEN_VERSION2=$(echo ${CLIGEN_VERSION} | awk -F- '{print $1}')
CLIGEN_VERSION_MAJOR=$(echo ${CLIGEN_VERSION2} | awk -F. '{print $1}')
CLIGEN_VERSION_MINOR=$(echo ${CLIGEN_VERSION2} | awk -F. '{print $2}')
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit 1908bde

Please sign in to comment.