Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
PacketLib
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Andrea Bulgarelli
PacketLib
Commits
33b85ebe
Commit
33b85ebe
authored
10 years ago
by
Andrea Zoli
Browse files
Options
Downloads
Patches
Plain Diff
Fix makefile output.
parent
bc36399b
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
Makefile
+19
-19
19 additions, 19 deletions
Makefile
with
19 additions
and
19 deletions
Makefile
+
19
−
19
View file @
33b85ebe
...
...
@@ -114,16 +114,16 @@ DOC_SOURCE= $(addprefix $(DOXY_SOURCE_DIR)/, $(notdir $(SOURCE)))
####### 7) Only for library generation
TARGET
=
$(
LIB_NAME
)
.so.
$(
shell
cat
version
)
#
TARGET = $(LIB_NAME).so.$(shell cat version)
TARGETA
=
$(
LIB_NAME
)
.a
TARGETD
=
$(
LIB_NAME
)
.so.
$(
shell
cat
version
)
TARGET0
=
$(
LIB_NAME
)
.so
TARGET1
=
$(
LIB_NAME
)
.so.
$(
shell
cut
version
-f
1
-d
'.'
)
TARGET2
=
$(
LIB_NAME
)
.so.
$(
shell
cut
version
-f
1
-d
'.'
)
.
$(
shell
cut
version
-f
2
-d
'.'
)
#
TARGETD = $(LIB_NAME).so.$(shell cat version)
#
TARGET0 = $(LIB_NAME).so
#
TARGET1 = $(LIB_NAME).so.$(shell cut version -f 1 -d '.')
#
TARGET2 = $(LIB_NAME).so.$(shell cut version -f 1 -d '.').$(shell cut version -f 2 -d '.')
####### 8) Preliminar operations
$(
shell
cut
$(
INCLUDE_DIR
)
/
$(
VER_FILE_NAME
)
-f
3
>
version
)
#
$(shell cut $(INCLUDE_DIR)/$(VER_FILE_NAME) -f 3 > version)
#WARNING: use -d ' ' if in the version.h the separator is a space
####### 9) Pattern rules
...
...
@@ -209,26 +209,26 @@ distclean: clean
#and so on to the file names where they should reside for actual use.
install
:
all
$(
shell
echo
$(
prefix
)
>
prefix
)
#test -d
$(
datadir
)
||
mkdir
-p
$(
datadir
)
#test -d
$(
infodir
)
||
mkdir
-p
$(
infodir
)
@
#test -d
$(
datadir
)
||
mkdir
-p
$(
datadir
)
@
#test -d
$(
infodir
)
||
mkdir
-p
$(
infodir
)
# For library installation
test
-d
$(libdir)
||
mkdir
-p
$(libdir)
test
-d
$(includedir)
||
mkdir
-p
$(includedir)
$(COPY_FILE)
$(LIB_DESTDIR)/$(TARGETA)
$(libdir)
#$(COPY_FILE) $(LIB_DESTDIR)/$(TARGET0) $(libdir)
#$(COPY_FILE) $(LIB_DESTDIR)/$(TARGET1) $(libdir)
#$(COPY_FILE) $(LIB_DESTDIR)/$(TARGET2) $(libdir)
#$(COPY_FILE) $(LIB_DESTDIR)/$(TARGETD) $(libdir)
@
#$(COPY_FILE) $(LIB_DESTDIR)/$(TARGET0) $(libdir)
@
#$(COPY_FILE) $(LIB_DESTDIR)/$(TARGET1) $(libdir)
@
#$(COPY_FILE) $(LIB_DESTDIR)/$(TARGET2) $(libdir)
@
#$(COPY_FILE) $(LIB_DESTDIR)/$(TARGETD) $(libdir)
$(COPY_FILE)
$(INCLUDE)
$(includedir)
#
For exe installation
#test -d $(bindir) || mkdir -p $(bindir)
#$(COPY_FILE) $(EXE_DESTDIR)/$(EXE_NAME) $(bindir)
@
#For exe installation
@
#test -d $(bindir) || mkdir -p $(bindir)
@
#$(COPY_FILE) $(EXE_DESTDIR)/$(EXE_NAME) $(bindir)
#uninstall: delete all the installed files--the copies that the `install' target creates.
uninstall
:
#For library uninstall
@
#For library uninstall
$(
DEL_FILE
)
$(
libdir
)
/
$(
TARGETA
)
$(
DEL_FILE
)
$(
libdir
)
/
$(
TARGETD
)
$(
DEL_FILE
)
$(
libdir
)
/
$(
TARGET0
)
...
...
@@ -236,8 +236,8 @@ uninstall:
$(
DEL_FILE
)
$(
libdir
)
/
$(
TARGET2
)
$(
DEL_FILE
)
$(
addprefix
$(
includedir
)
/,
$(
notdir
$(
INCLUDE
)))
# For exe uninstall
#$(DEL_FILE) $(bindir)/$(EXE_NAME)
@
# For exe uninstall
@
#$(DEL_FILE) $(bindir)/$(EXE_NAME)
#dist: create a distribution tar file for this program
dist
:
all
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment